<?php

namespace app\shop\controller\company;
use app\shop\service\company\Train as TrainService;
/**
 * 
 */
class Train
{
    /**
     * 员工列表
     */
    public function student(TrainService $TrainService)
    {
        $data = input();
        return $TrainService->students($data);
    }

    public function addStudent(TrainService $TrainService)
    {
        $data = input();
        return $TrainService->addStudent($data);
    }

    public function trainStation(TrainService $TrainService)
    {
        $data = input();
        return $TrainService->trainStation($data);
    }

    public function trainLog(TrainService $TrainService)
    {
        $data = input();
        return $TrainService->trainLog($data);
    }

    public function doneTrain(TrainService $TrainService)
    {
        $user_id = input('user_id');
        return $TrainService->doneTrain($user_id);
    }

    public function files(TrainService $TrainService)
    {
        $data = input();
        return $TrainService->files($data);
    }

    public function delFile(TrainService $TrainService)
    {
        $id = input('id');
        return $TrainService->delFile($id);
    }

    public function saveFile(TrainService $TrainService)
    {
        $data = input();
        return $TrainService->saveFile($data);
    }
}